package com.jie.eclipse.pan.popup.wizard;

import org.eclipse.core.resources.IFolder;
import org.eclipse.jface.wizard.Wizard;

import com.jie.eclipse.pan.config.BasePageConfig;
import com.jie.eclipse.pan.generator.PanGenerator;

public class BaseWizard extends Wizard{
	private IFolder ifolder = null;//当前文件夹
	private BasePageConfig pageConfig = null;//页面配置
	private PanGenerator panGenerator = null;//面面代码生成器
	/**
	 * 
	 */
	public BaseWizard() {
		super();
		this.panGenerator = new PanGenerator();
		this.panGenerator.setBaseWizard(this);
		this.pageConfig = new BasePageConfig();
		this.pageConfig.setBaseWizard(this);
	}
	
	public PanGenerator getPanGenerator() {
		return panGenerator;
	}


	public void setPanGenerator(PanGenerator panGenerator) {
		this.panGenerator = panGenerator;
	}


	public BasePageConfig getPageConfig() {
		
		return pageConfig;
	}


	public void setPageConfig(BasePageConfig pageConfig) {
		this.pageConfig = pageConfig;
	}

	public String getCurrFolderName(){
		if(ifolder == null)return "";
		return ifolder.getName();
	}
	
	public IFolder getCurrFolder() {
		return ifolder;
	}


	public void setCurrFolder(IFolder ifolder) {
		this.ifolder = ifolder;
	}


	@Override
	public boolean performFinish() {
		return false;
	}
}
